<?php

/*
*/

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Taobao_Sync extends CI_Controller {

	public $data;

	public function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$url = 'http://item.taobao.com/item.htm?id=14416621211';
		$file = file_get_contents($url, 'r');
		$string = "football";
		if (preg_match('/\<h3\>(.*)\<\/h3\>/', $file, $d)) {
			var_dump($d);
		}
		else
		{
			echo 1;
		}
	}

	public function do_action()
	{

	}

}